package com.swsc.ai.configs.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConstructorBinding;
import org.springframework.stereotype.Component;

/**
 * @describe: 生成ftp配置bean
 * @author: 容若
 * @created: 2024-06-20 9:49
 */
@Data
@Component
@ConfigurationProperties(prefix = "ftp")
public class FtpSourceProperties {
    /**
     * ftp服务器地址
     */
    private String host;
    /**
     * ftp服务器端口
     */
    private int port;
    /**
     * ftp服务器用户名
     */
    private String username;
    /**
     * ftp服务器密码
     */
    private String password;
    /**
     * ftp下载文件的本地存储路径
     */
    private String saveFileLocalPath;
    /**
     * ftp下载文件的HDFS存储路径
     */
    private String saveFileHdfsPath;

//    @ConstructorBinding
//    public FtpSourceProperties(String host, String port, String username, String password, String saveFilePath) {
//        this.host = host;
//        this.port = port;
//        this.username = username;
//        this.password = password;
//        this.saveFilePath = saveFilePath;
//    }
}
